package com.atguigu.springcloud.stream.controller;

import com.atguigu.springcloud.stream.service.IMessageProvider;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author lenovo
 * @version 1.0
 * @date 2020/12/22 17:40
 */
@RestController
public class SendMessageController {

    @Autowired
    IMessageProvider iMessageProvider;

    @GetMapping("sendMessage")
    public String sendMessage(){
        String send = iMessageProvider.send();
        return send;
    }
}
